﻿define(function (require) {
    var ProjectView = require('views/project.view');
    var ProjectListView = require('views/projectlist.view');
    
    require('models/project');
    require('models/projectlist');

    return Backbone.View.extend({
        tagName: "div",
        template: _.template($("#project-container").html()),
        events: {
           
        },
        render: function () {
            $(this.el).html(this.template({}));
                   
            projectsView = new ProjectListView({ model: new ProjectList()});
            $(this.el).find('.content-primary').append(projectsView.el);

            return this;
        },
        initialize: function () {
            _.bindAll(this, 'render');
        },
    });

});